package com.w.learn;
import com.w.tank.GameObject;
import java.awt.*;

public abstract class Decorator extends GameObject  {
        GameObject go;
        public Decorator(GameObject go){
            this.go = go;
        }
    @Override
    public int getWidth() {
        return go.getWidth();
    }

    @Override
    public int getHeight() {

        return go.getHeight();
    }
    @Override
    public abstract void paint(Graphics g);
}
